package com.ketangpai.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

@Data
public class StuWork {
    //主键id
    @TableId(type = IdType.AUTO)
    private Integer id;
    //用户id
    private Integer userId;

    //作业id
    private Integer workId;
    //成绩
    private String score;
    //用户
    private String username;
    //0.未提交 1.提交未批改 2.提交已批改 3.已打回
    private Integer status;
    //内容
    private String content;
    //留言
    private String message;
    //提交时间
    private Date submitTime;
    //批改时间
    private Date checkTime;
    //提交次数
    private Integer submitCount;
    //批改次数
    private Integer checkCount;
    //催交次数
    private Integer expediteCount;
    //分组标签
    private Integer groupId;
    //文件
    private String filename;
    /**
     * 文件
     */
    @TableField(exist = false)
    @ApiModelProperty(dataType = "MultipartFile", name = "文件", value = "file")
    private MultipartFile file;
}
